package org.example.xls.tool;

public  class TheadLocalUtil {
    private static ThreadLocal<String> threadLocal = new ThreadLocal<>();
    //设置线程局部变量token
    public static void setThreadLocal(String token){
        threadLocal.set(token);
    }

    //获取线程局部变量token
    public static String getThreadLocal() {
        return threadLocal.get();
    }

    //删除线程局部变量token
    public static void removeThreadLocal(){
        threadLocal.remove();
    }
}